home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20020314-20021006
/
000037_svd_box_5@hotpop.com_Tue Apr 23 14:15:25 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2002-10-06
|
2KB
|
55 lines
Article: 13327 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!howland.erols.net!logbridge.uoregon.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: svd_box_5@hotpop.com (Scott Davis)
Newsgroups: comp.protocols.kermit.misc
Subject: What is wrong with this macro
Date: 23 Apr 2002 11:05:41 -0700
Organization: http://groups.google.com/
Lines: 37
Message-ID: <97b4e474.0204231005.3bf7bc3e@posting.google.com>
NNTP-Posting-Host: 208.192.214.6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1019585141 32017 127.0.0.1 (23 Apr 2002 18:05:41 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 23 Apr 2002 18:05:41 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13327
This macro worked fine under kermit 7, but under 8 it gives the message:
?Unbalanced braces
define get-a-3com-modem -
{
local \%i
local got-line
echo Finding a 3com modem.
set input echo off
assign got-line 0
for \%i 2 9 1 -
{
xecho {Trying \%i : }
set line /dev/tty\%i
xif failure -
{
echo This line cannot be accessed
continue
}
set speed 38400
set flow rts
output \{13}
pause 1
output AT\{13}
input 2 OK
xif failure -
{
echo This line seems to be hung
continue
}
assign got-line \%i
break
}
if equal \m(got-line) 0 end 1 Error: all resources in use.
echo Available
echo Acquired a 3com modem.
}